/**
 * Exam No: Y8467136
 */
package japrc2011;


public final class MapEntity {
    
    public enum MapEntityType {
        WALL, ROBOT
    }
    
    private MapEntityType type;
    private String id;
       
    public MapEntity(MapEntityType type, String id)
    {
        this.type = type;
        this.id = id;
    }

    public MapEntityType getType()
    {
        return type;
    }

    public String getId()
    {
        return id;
    }         
    
    public String toString()
    {
    	//code that change the way the wall appears in the map
/*    	String appropriate_string = null;
    	if(type.equals(MapEntityType.WALL)) 
    	{
    		appropriate_string = "" + type.toString(); 
    	} 
    	else if(type.equals(MapEntityType.ROBOT)) 
    	{ 
    		appropriate_string = "" + type.toString() + ": " + id; 
    	} 
        return appropriate_string; 
*/    	return "" + type.toString() + ": " + id;
    }
}